﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using QMERP.Domain.Entities;

namespace QMERP.Infrastructure.EFCore.Mappings
{
    public class BulkOrderDetail_MonofocalMaterialDetailMapping : IEntityTypeConfiguration<BulkOrderDetail_MonofocalMaterialDetail>
    {
        public void Configure(EntityTypeBuilder<BulkOrderDetail_MonofocalMaterialDetail> builder)
        {
            builder.Property(x => x.Base);
            builder.Property(x => x.Qty);

            builder.Property(x => x.BulkOrderDetailId);

            builder.HasIndex(x => x.Id);
            builder.HasIndex(x => x.BulkOrderDetailId);
        }
    }
}
